package com.huangmb.anymark.app.api;

import com.huangmb.androidlib.utils.PreferencesUtils;
import com.huangmb.anymark.app.app.AnyMarkApplication;

/**
 * @author hmb
 * @version 1.0
 * @since 2016/5/7 16:23
 */
public class CookieManager {
    private static String mCookie;
    private static void load(){
        mCookie = PreferencesUtils.getString(AnyMarkApplication.getInstance(),"cookie",null);
    }

    public static String getCookie() {
        return mCookie;
    }

    public static void setCookie(String cookie) {
        mCookie = cookie;
    }

    public static void flush(){
        PreferencesUtils.put(AnyMarkApplication.getInstance(),"cookie",mCookie);
    }
}
